Chapter 3 - Geometric Styles
This chapter describes the geometric properties of style objects, which you can use to apply certain types of stylistic variations to QuickDraw GX shapes. In particular, this chapter shows how you can
You can also apply stylistic variations to typographic shapes, using the typographic properties of the style object. For example, you can use the style associated with a text shape to specify the text's font, font size, and type style. The chapter "Typographic Styles" in Inside Macintosh: QuickDraw GX Typography discusses the text-related properties of style objects.
- constrain the drawing of a shape to a grid
- specify the pen width to use when drawing a shape's frame
- indicate the placement of the pen relative to the shape's frame
- specify what to draw at the beginnings and the ends of a shape's contours
- specify what to draw at the corners of a shape's contours
- dash the contours of a shape
- fill a shape, or the frame of a shape, with a pattern
You should be familiar with some of the information in Inside Macintosh: QuickDraw GX Objects before you read this chapter; in particular, you should read the chapters "Introduction to QuickDraw GX Objects" and "Style Objects" in that book.
Chapter Contents
- About Geometric Styles
- Shapes and Styles
- Incorporating Stylistic Variations Into Shape Geometries
- Style Properties
- Default Style Objects
- Curve Error
- The Geometric Pen
- Style Attributes
- Pen Placement
- Grids
- Interactions Between Caps, Joins, Dashes, and Patterns
- Caps
- Joins
- Dashes
- Patterns
- Interactions Between Caps, Joins, Dashes, and Patterns
- Using Geometric Styles
- Associating Styles With Shapes
- Constraining Shape Geometries to Grids
- Constraining Shapes to Device Grids
- Using Curve Error When Converting Paths to Polygons
- Using Curve Error When Reducing Shapes
- Manipulating Pen Width and Placement
- Adding Caps to a Shape
- Adding Standard Caps to a Shape
- Adding Joins to a Shape
- Adding Standard Joins to a Shape
- Dashing a Shape
- Adjusting Dashes to Fit Contours
- Insetting Dashes
- Breaking and Bending Dashes
- Wrapping Text to a Contour
- Determining Dash Positions
- Adding a Pattern to a Shape
- Determining Pattern Positions
- Combining Caps, Joins, Dashes, and Patterns
- Geometric Styles Reference
- Constants and Data Types
- Style Objects
- Style Attributes
- The Cap Structure
- Cap Attributes
- The Join Structure
- Join Attributes
- The Dash Structure
- Dash Attributes
- The Pattern Structure
- Pattern Attributes
- Functions
- Getting and Setting Style Attributes
- Getting and Setting Curve Error
- Getting and Setting the Pen Width
- Getting and Setting Caps
- Getting and Setting Joins
- Getting and Setting Dashes
- Getting and Setting Patterns
- Summary of Geometric Styles
- Constants and Data Types
- Style Attributes
- Cap Structure
- Cap Attributes
- Join Structure
- Join Attributes
- Dash Structure
- Dash Attributes
- Pattern Structure
- Pattern Attributes
- Functions for Manipulating Geometric Style Properties
- Getting and Setting Style Attributes
- Getting and Setting Curve Error
- Getting and Setting the Pen Width
- Getting and Setting Caps
- Getting and Setting Joins
- Getting and Setting Dashes
- Getting and Setting Patterns
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help